<?php

?>

<div class="list-group">
    <?php if($block->get('aCategories')) : ?>
        <?php foreach($block->get('aCategories') as $oCategory) : ?>
            <a class="list-group-item <?php echo ($block->sController == 'category' && $block->iId == $oCategory->category_id ? 'active' : ''); ?>" href="<?php echo $block->url->getLink('category/view/'.$oCategory->category_id);?>"><?php echo $oCategory->title; ?></a>
            <?php endforeach; ?>
        <?php endif; ?>
    </div>